package com.kyle.pagingdemo.data.model

import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.kyle.pagingdemo.ColorConverter
import kotlinx.parcelize.Parcelize

/**
 * author: liliang
 * date: 1/9/21 8:55 PM
 * desc:
 */
@Parcelize
@Entity
@TypeConverters(ColorConverter::class)
data class Post(
    @PrimaryKey(autoGenerate = true)
    val key: Int,
    val id: Int,
    val md5: String,
    val ext: String,
    val medium_preview: String,
    val big_preview: String,
    val width: Int,
    val height: Int,
    val color: List<Int>?
) : Parcelable
